.class public Lcom/hierynomus/smbj/smb2/d;
.super Ljava/lang/Object;
.source "SMB2Packet.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/lang/Object<",
        "Lcom/hierynomus/smbj/smb2/d;",
        "Lcom/hierynomus/smbj/common/b;",
        ">;"
    }
.end annotation


# instance fields
.field protected final a:Lcom/hierynomus/smbj/smb2/c;

.field protected b:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Lcom/hierynomus/smbj/smb2/c;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/c;-><init>()V

    iput-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    return-void
.end method

.method public constructor <init>(ILcom/hierynomus/smbj/smb2/SMB2Dialect;Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;)V
    .locals 1

    .line 3
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 4
    new-instance v0, Lcom/hierynomus/smbj/smb2/c;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/c;-><init>()V

    iput-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    .line 5
    iput p1, p0, Lcom/hierynomus/smbj/smb2/d;->b:I

    .line 6
    invoke-virtual {v0, p2}, Lcom/hierynomus/smbj/smb2/c;->a(Lcom/hierynomus/smbj/smb2/SMB2Dialect;)V

    .line 7
    iget-object p1, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {p1, p3}, Lcom/hierynomus/smbj/smb2/c;->a(Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;)V

    return-void
.end method

.method public constructor <init>(ILcom/hierynomus/smbj/smb2/SMB2Dialect;Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;JJ)V
    .locals 1

    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 9
    new-instance v0, Lcom/hierynomus/smbj/smb2/c;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/c;-><init>()V

    iput-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    .line 10
    iput p1, p0, Lcom/hierynomus/smbj/smb2/d;->b:I

    .line 11
    invoke-virtual {v0, p2}, Lcom/hierynomus/smbj/smb2/c;->a(Lcom/hierynomus/smbj/smb2/SMB2Dialect;)V

    .line 12
    iget-object p1, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {p1, p3}, Lcom/hierynomus/smbj/smb2/c;->a(Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;)V

    .line 13
    iget-object p1, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {p1, p4, p5}, Lcom/hierynomus/smbj/smb2/c;->b(J)V

    .line 14
    iget-object p1, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {p1, p6, p7}, Lcom/hierynomus/smbj/smb2/c;->c(J)V

    return-void
.end method


# virtual methods
.method public a()Lcom/hierynomus/smbj/smb2/c;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    return-object v0
.end method

.method public final a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    .line 2
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {v0, p1}, Lcom/hierynomus/smbj/smb2/c;->b(Lcom/hierynomus/protocol/commons/buffer/Buffer;)V

    .line 3
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v0

    .line 4
    sget-object v1, Ljava/lang/System;->err:Ljava/io/PrintStream;

    invoke-virtual {v1, v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    .line 5
    sget-object v1, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;

    invoke-virtual {v0, v1}, Ljava/lang/Enum;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    sget-object v1, Lcom/hierynomus/mserref/NtStatus;->STATUS_MORE_PROCESSING_REQUIRED:Lcom/hierynomus/mserref/NtStatus;

    invoke-virtual {v0, v1}, Ljava/lang/Enum;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    sget-object v1, Lcom/hierynomus/mserref/NtStatus;->STATUS_END_OF_FILE:Lcom/hierynomus/mserref/NtStatus;

    invoke-virtual {v0, v1}, Ljava/lang/Enum;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {v0, p1}, Lcom/hierynomus/smbj/smb2/c;->a(Lcom/hierynomus/protocol/commons/buffer/Buffer;)V

    goto :goto_1

    .line 7
    :cond_1
    :goto_0
    invoke-virtual {p0, p1}, Lcom/hierynomus/smbj/smb2/d;->b(Lcom/hierynomus/smbj/common/b;)V

    :goto_1
    return-object p0
.end method

.method public b()J
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->d()J

    move-result-wide v0

    return-wide v0
.end method

.method protected b(Lcom/hierynomus/smbj/common/b;)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    .line 2
    new-instance p1, Ljava/lang/UnsupportedOperationException;

    const-string v0, "Should be implemented by specific message type"

    invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final c(Lcom/hierynomus/smbj/common/b;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/d;->a:Lcom/hierynomus/smbj/smb2/c;

    invoke-virtual {v0, p1}, Lcom/hierynomus/smbj/smb2/c;->a(Lcom/hierynomus/smbj/common/b;)V

    .line 2
    invoke-virtual {p0, p1}, Lcom/hierynomus/smbj/smb2/d;->d(Lcom/hierynomus/smbj/common/b;)V

    return-void
.end method

.method protected d(Lcom/hierynomus/smbj/common/b;)V
    .locals 1

    .line 1
    new-instance p1, Ljava/lang/UnsupportedOperationException;

    const-string v0, "Should be implemented by specific message type"

    invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw p1
.end method
